<template>
	<view v-html="desc">
	</view>
</template>

<script>
	import {
		ONLINE_SERVER_ADDRESS_BASE,
		syncGetOrder,
		syncPriceInfo,
		myUploadFile,
	} from "../../../util/network.js"
	export default {
		data() {
			return {
				desc:'',
				id:0,
				token:'',
			}
		},
		methods: {
			getOrder(){
				let _this = this
				uni.request({
					url:`${ONLINE_SERVER_ADDRESS_BASE}/policy/read/` + this.id,
					header: {
						'Authorization': this.token,
					},
					method:'POST',
					success: function (res) {
						console.log(res)
						if(res.data.code == 200){
							_this.desc = res.data.data.desc
						}
					}
				})
			},
		},
		onLoad(option) {
			this.token = uni.getStorageSync('token')
			this.id = option.id
			this.getOrder()
		}
	}
</script>

<style>

</style>
